package com.tg.app.adapter;

import android.content.Context;

public class PrePositionDialogAdapter extends PrePositionAdapter {
    public static final String TAG = PrePositionDialogAdapter.class.getSimpleName();
    public PrePositionDialogAdapter(Context context, PrePositionListener listener) {
        super(context, listener);
    }

    @Override
    public int getItemCount() {
        int size = prePositions.size();
        if (size >= 6){
            size = 6;
        }
        if (isEditEnable) return size;
        if (size == 6) {
            return 6;
        }
        return size + 1;
    }
}